package io.renren.modules.erp.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.erp.entity.AccountDepot;
import io.renren.modules.erp.entity.AccountHead;
import io.renren.modules.erp.entity.AccountItem;
import io.renren.modules.erp.entity.AccountItemExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface AccountItemMapper extends BaseMapper<AccountItem> {
    long countByExample(AccountItemExample example);

    int deleteByExample(AccountItemExample example);

    int deleteByBillNo(@Param("billNo")String billNo);


    int deleteByPrimaryKey(Long id);

    int insert(AccountItem record);

    int insertSelective(AccountItem record);

    int insertAccountDepot(AccountDepot accountDepot);


    List<AccountItem> selectByExample(AccountItemExample example);

    AccountItem selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AccountItem record, @Param("example") AccountItemExample example);

    int updateByExample(@Param("record") AccountItem record, @Param("example") AccountItemExample example);

    int updateByPrimaryKeySelective(AccountItem record);

    int updateByPrimaryKey(AccountItem record);
}